<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/jsp/jscommom.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>欢迎来到龙岗区政府主办公益性职介所</title>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/checkreguserinfo.js"
		charset="UTF-8"></script>
	<script type="text/javascript">
	<bean:write name="com_struts_web_user_register_RegUserInfoForm" property="printStaSql" filter="false"/>
function reset(){
 document.forms[0].reset();
 }
 
 //处理列表信息
function Left2Right(left,right,maxItem,allowRepeat,superaddition){

if(!allowRepeat)allowRepeat = false;
	if(!superaddition)superaddition = "";
	if(!left || !right || left.tagName!='SELECT' || left.tagName!='SELECT') return false;
	if(!maxItem || isNaN(maxItem) || maxItem<0)maxItem=0;
	if(maxItem>0 && right.options.length>=maxItem)
	{
		alert("不能超过" + maxItem + "项!");
		return;
	}
	for(var i=0; i<left.options.length;i++)
	{
		if(left.options[i].selected)
		{
			if(!allowRepeat && findItem(right,left.options[i].text,left.options[i].value,1)!=null)
				alert("\"" + left.options[i].text + "\"" + "已经存在,不能重复添加!");
			else{
				if(superaddition=="")
					right.options.add(new Option(left.options[i].text,left.options[i].value));
				else
					right.options.add(new Option(superaddition + "－" + left.options[i].text,left.options[i].value));
					
				}
		}
	}

}

//处理列表信息
function deloption(right){
   for(var i=0;i<right.options.length;i++){
     if(right.options[i].selected){
       right.options.remove(i);
     }
   }
}

function findItem(target,text,value,flag)
{
	if(!flag) flag = 0;
	if(!target || target.tagName!='SELECT') return null;
	for(var i=0;i<target.options.length;i++)
	{
	
		if(flag==1 && target.options[i].value==value)
		{
		 
		 return target.options[i];
		 }
		if(flag==2 && target.options[i].text==text) return target.options[i];
		if(target.options[i].text==text&&target.options[i].value==value) return target.options[i];
	}
	return null;
}

var chosen_sort=0;

function doSubstation() {
chosen_sort = document.all.stationSort.selectedIndex;
if(chosen_sort==0 && document.all.substation.options.length>0){
   document.all.substation.options.length=0;
}else{
document.all.stationSort.blur();
document.all.substation.options.length = 0 ;
for (var i = 0 ; i < substation [chosen_sort].length ; i++){
var value=substation[chosen_sort][i];
var label=substation[chosen_sort][++i]
document.all.substation.options [i/2] = new Option(label,value);
  }
}
}
</script>
	<body>
		<html:form action="/com/struts/web/user/register/reguserinfo">
			<html:hidden property="stationList" />
			<html:hidden property="stationTextList" />
			
			<html:hidden property="method" />
			
			<html:hidden property="registeredAddress" />
			<table width="880" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<%@ include file="/jsp/top.jsp"%>
				<tr>
					<td align="center" valign="top">
						<table width="880" border="0" cellpadding="0" cellspacing="8"
							bgcolor="#FFFFFF">
							<tr>
								<td colspan="2" align="center" valign="top">
									<img src="/images/index_35.gif" width="721" height="54" />
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									<strong>第二步 基本资料</strong>（说明：带 “
									<span class="red"> * </span>” 号的为必填项）
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									<table width="100%" border="0" cellpadding="0" cellspacing="0"
										class="form">
										<tr>
											<td align="left" class="form-top">
												基本信息
											</td>
										</tr>
										<tr>
											<td align="left" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form-info">
													<tr>
														<td width="18%">
															<span class="red">*</span> 姓名：
														</td>
														<td width="41%">
															<html:text property="name" size="15" maxlength="10"></html:text>
														</td>
														<td width="14%">
															<span class="red">*</span> 性别：
														</td>
														<td width="27%">
															<html:radio property="sex" value="男">男</html:radio>
															<html:radio property="sex" value="女">女</html:radio>
															<script>   
    document.all("sex")[0].checked=true;//第一个radio选中   
  </script>
														</td>
													</tr>
													<tr>
														<td>
															<span class="red">*</span> 出生日期：
														</td>
														<td>
															<html:text property="birthday" onclick="datepopup(this)"></html:text>
														</td>
														<td>
															<span class="red">*</span> 毕业院校：
														</td>
														<td>
															<html:text property="schoolName" size="23" maxlength="18"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															<span class="red">*</span> 学历：
														</td>
														<td>
															<html:select property="education" styleClass="input1">
																<html:option value="">请选择</html:option>
																<html:option value="初中">初中</html:option>
																<html:option value="高中">高中</html:option>
																<html:option value="中技">中技</html:option>
																<html:option value="中专">中专</html:option>
																<html:option value="大专">大专</html:option>
																<html:option value="本科">本科</html:option>
																<html:option value="硕士">硕士</html:option>
																<html:option value="博士">博士</html:option>
															</html:select>
														</td>

														<td>
															<span class="red">*</span> 专业：
														</td>
														<td>
															<html:text property="speciality" size="15" maxlength="13"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															<span class="red">*</span> 手机号码：
														</td>
														<td>
															<html:text property="mobilphone" size="15" maxlength="13"></html:text>
														</td>
														<td>
															<span class="red">*</span> 电话：
														</td>
														<td>
															<html:text property="telephone" size="15" maxlength="13"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															<span class="red">*</span> 联系地址：
														</td>
														<td colspan="3">
															<html:text property="nowAddress" size="55" maxlength="50"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															联系地址邮编：
														</td>
														<td colspan="3">
															<html:text property="nowPostalCode" size="15"
																maxlength="13"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															*户口所在地址：
														</td>
														<td colspan="3">
														<input type="text" id="regAddrPro"/>省
														<input type="text" id="regAddrCity"/>市(县)
														</td>
													</tr>
													<tr>
														<td width="250">
															户口所在地邮编：
														</td>
														<td colspan="3">
															<html:text property="regPostalCode" size="15"
																maxlength="13"></html:text>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									<table width="100%" border="0" cellpadding="0" cellspacing="0"
										class="form">
										<tr>
											<td width="727" align="left" class="form-top">
												求职意向
											</td>
										</tr>
										<tr>
											<td align="left" valign="top">
												<table width="100%" cellpadding="0" cellspacing="0"
													class="form-info">
													<tr>
														<td align="right">
															<select id="stationSort" style="width:200"
																onchange="doSubstation()">
																<SCRIPT language="JavaScript">
			        for (var i = 0; i < (station.length); i++) {
			         document.write("<OPTION value='"+station[i]+"'");
			    document.write(">" + station[++i]+"</OPTION>");	
			  }
			</SCRIPT>
															</select>
														</td>
														<td rowspan="2" align="center">
															<input type="button" value="》" id="sr2l"
																onclick="Left2Right(document.all.substation,document.all.ssubstation,3,0,'')" />
															<input type="button" value="《" id="sd"
																onclick="deloption(document.all.ssubstation)" />
														</td>
														<td rowspan="2" align="left">
															<select id="ssubstation" size="4" style="width:200">

															</select>

														</td>
													</tr>
													<tr>
														<td align="right">
															<select id="substation" size="4" style="width:200"></select>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center" valign="top">
									<table width="100%" border="0" cellpadding="0" cellspacing="0"
										class="form">
										<tr>
											<td align="left" class="form-top" colspan="2">
												教育背景
											</td>
										</tr>
										<tr>
											<td align="center" valign="top" colspan="2">
												<table width="100%" cellpadding="0" cellspacing="3"
													border="0">
													<tr>
														<td width="50%">
															<span class="red">*</span> 何年何月
														</td>
														<td width="50%">
															<span class="red">*</span> 何地就读
														</td>
													</tr>
													<tr>
														<td width="50%">
															<html:text property="educationBgDate1"
																onclick="datepopup(this);"></html:text>
															至
															<html:text property="educationBgDate12"
																onclick="datepopup(this);"></html:text>
														</td>
														<td width="50%">
															<html:text property="educationBg1" size="55"
																maxlength="50"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															<html:text property="educationBgDate2"
																onclick="datepopup(this);"></html:text>
															至
															<html:text property="educationBgDate22"
																onclick="datepopup(this);"></html:text>
														</td>
														<td>
															<html:text property="educationBg2" size="55"
																maxlength="50"></html:text>
														</td>
													</tr>
													<tr>
														<td>
															<html:text property="educationBgDate3"
																onclick="datepopup(this);"></html:text>
															至
															<html:text property="educationBgDate32"
																onclick="datepopup(this);"></html:text>
														</td>
														<td>
															<html:text property="educationBg3" size="55"
																maxlength="50"></html:text>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															英语能力
														</td>
													</tr>
													<tr class="form-info">
														<td>
															<html:textarea property="english" cols="80" rows="2"></html:textarea>

														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															专业能力
														</td>
													</tr>
													<tr class="form-info">
														<td>
															<html:textarea property="specialityLevel" cols="80"
																rows="3"></html:textarea>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															社会实践
														</td>
													</tr>
													<tr>
														<td align="center" valign="top">
															<table width="100%" cellpadding="0" cellspacing="3"
																border="0">
																<tr>
																<tr>
																	<td width="50%">
																		<span class="red">*</span> 何年何月
																	</td>
																	<td width="50%">
																		<span class="red">*</span> 实践内容
																	</td>
																</tr>
																<tr>
																	<td>
																		<html:text property="socialityDate1"
																			onclick="datepopup(this);"></html:text>
																		至
																		<html:text property="socialityDate12"
																			onclick="datepopup(this);"></html:text>
																	</td>
																	<td>
																		<html:text property="sociality1" size="55"
																			maxlength="50"></html:text>
																	</td>
																</tr>
																<tr>
																	<td>
																		<html:text property="socialityDate2"
																			onclick="datepopup(this);"></html:text>
																		至
																		<html:text property="socialityDate22"
																			onclick="datepopup(this);"></html:text>
																	</td>
																	<td>
																		<html:text property="sociality2" size="55"
																			maxlength="50"></html:text>
																	</td>
																</tr>
																<tr>
																	<td>
																		<html:text property="socialityDate3"
																			onclick="datepopup(this);"></html:text>
																		至
																		<html:text property="socialityDate32"
																			onclick="datepopup(this);"></html:text>
																	</td>
																	<td>
																		<html:text property="sociality3" size="55"
																			maxlength="50"></html:text>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															主修课程
														</td>
													</tr>
													<tr class="form-info">
														<td>
															<html:textarea property="course" cols="80" rows="6"></html:textarea>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															自我评价
														</td>
													</tr>
													<tr class="form-info">
														<td>
															<html:textarea property="descriptYourself" cols="80"
																rows="6"></html:textarea>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" valign="top">
												<table width="100%" border="0" cellpadding="0"
													cellspacing="0" class="form">
													<tr>
														<td align="left" class="form-top">
															特长、爱好
														</td>
													</tr>
													<tr class="form-info">
														<td>
															<html:textarea property="features" cols="80" rows="6"></html:textarea>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td width="50%" align="right" valign="top">
												<img src="/images/reg1.gif" width="94" height="28"
													style="cursor:hand" onclick="doMethod('add')" />
											</td>
											<td align="left" valign="top">
												<img src="/images/reg2.gif" width="63" height="28"
													style="cursor:hand" onclick="reset()" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<%@ include file="/jsp/bottom.jsp"%>
						</table>
						</html:form>
	</body>
</html>
